#!/usr/bin/env bash

mkdir -p ~/.config/
git clone https://github.com/LuaLS/lua-language-server.git ~/.config/lua-language-server
cd ~/.config/lua-language-server
git checkout -b 3.6.9
sudo pkg install -y lua54 ninja libinotify
./make.sh
mkdir -p ~/.local/bin/
ln -s ~/.config/lua-language-server/bin/lua-language-server ~/.local/bin/

# bash -c "$(curl -fsSL https://gitee.com/hevey88/install_script/raw/main/freebsd_lua_ls.sh)"
